package com.baolai.result;

public class ResultUtil {

    public static Result success(String msg){
        return new Result(0,msg);
    }

    public static Result error(String msg){
        return new Result(1,msg);
    }

    public static Result success(Object data){
        return new Result(0,data);
    }

    public static Result redirect(String path){
        return new Result(2,path);
    }
}
